package com.zyh.day01

import scala.io.StdIn

object IfElseTest {
  def main(args: Array[String]): Unit = {
    val age = StdIn.readInt()
    var str = if(age <= 10){
      println("chile")
    }else if (age <= 18){
      println("boy|girl")
      "boy|girl"
    }else {
      println("man|woman")
      "man|woman"
    }
    println(s"str = $str")

    var a = 10
    var b = 20
    if(a>b) println(a) else println(b)
  }
}
